﻿namespace AUSRIS.Data.Web.Entities
{
	/// <summary>
	/// <para>
	/// Represents a file that can be published as a catalog item in SSRS
	/// </para>
	/// </summary>
	public class CatalogFile : DeploymentItem
	{

		#region Private Fields

		private string sourcePath;
		private string revision;

		#endregion

		#region Constructor(s)

		/// <summary>
		/// <para>
		/// CatalogFile constructor that sets the Name, ParentFolder and SourcePath properties when the CatalogFile object is created.
		/// </para>
		/// </summary>
		/// <param name="name"></param>
		/// <param name="parentFolder"></param>
		/// <param name="sourcePath"></param>
		public CatalogFile(string name,Folder parentFolder,string sourcePath)
			: base(name,parentFolder)
		{
			this.sourcePath = sourcePath;
			this.revision = "";
		}

		#endregion

		#region Public Properties

		/// <summary>
		/// Path to Catalog File in source control
		/// </summary>
		public string SourcePath
		{
			get
			{
				return sourcePath;
			}
			set
			{
				sourcePath = value;
			}
		}

		/// <summary>
		/// Revision or Version number of Catalog File in source control
		/// </summary>
		public string Revision
		{
			get
			{
				return revision;
			}
			set
			{
				revision = value;
			}
		}

		#endregion

	}
}